package com.rushb.msg.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rushb.msg.entity.Msg;
import com.rushb.msg.mapper.MsgMapper;
import com.rushb.msg.service.MsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: lizl-project
 * @description:
 * @author: zhaolun.li
 * @create: 2021-06-15 14:49
 **/
@Service
public class MsgServiceImpl extends ServiceImpl<MsgMapper, Msg> implements MsgService {

    @Autowired(required = false)
    private MsgMapper msgMapper;

    @Override
    public List<Msg> getAll() {
        return msgMapper.selectList(new QueryWrapper<>());
    }
}
